const Forms = [
	{
		key: 'icon',
		msg: '请选择分类'
	},
	{
		key: 'accountId',
		msg: '请选择账户'
	},
	{
		key: 'amount',
		msg: '请输入金额'
	},
	{
		key: 'meticulousTime',
		msg: '请选择时间'
	}
]

export function validate(data) {
	const index = Forms.findIndex(c => data[c.key] === '' || data[c.key] === null || data[c.key] === undefined)
	return index !== -1 ? Forms[index] : null
}